package com.atguigu.ssyx.activity.service;


import com.atguigu.ssyx.model.activity.CouponInfo;
import com.atguigu.ssyx.vo.activity.CouponRuleVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 优惠券信息 服务类
 * </p>
 *
 * @author atguigu
 * @since 2023-11-09
 */
public interface CouponInfoService extends IService<CouponInfo> {
    //1.优惠卷分页查询
//    IPage<CouponInfo> selectPageCouponInfo(Long page, Long limit);

    CouponInfo getCouponInfo(Long id);

    //4.根据优惠卷id查询规则数
    Map<String, Object> findCouponRuleList(Long id);
    //5.添加优惠卷规则数据
    void saveCouponRule(CouponRuleVo couponRuleVo);

    IPage<CouponInfo> selectPage(Page<CouponInfo> pageParam);
}
